// 自动生成模板SmsSeckillPromotion
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// smsSeckillPromotion表 结构体  SmsSeckillPromotion
type SmsSeckillPromotion struct {
	Id         *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`         //id
	Title      *string    `json:"title" form:"title" gorm:"comment:活动标题;column:title;size:255;"`        //活动标题
	StartTime  *time.Time `json:"startTime" form:"startTime" gorm:"comment:开始日期;column:start_time;"`    //开始日期
	EndTime    *time.Time `json:"endTime" form:"endTime" gorm:"comment:结束日期;column:end_time;"`          //结束日期
	Status     *bool      `json:"status" form:"status" gorm:"comment:上下线状态;column:status;"`             //上下线状态
	CreateTime *time.Time `json:"createTime" form:"createTime" gorm:"comment:创建时间;column:create_time;"` //创建时间
	UserId     *int       `json:"userId" form:"userId" gorm:"comment:创建人;column:user_id;size:19;"`      //创建人
}

// TableName smsSeckillPromotion表 SmsSeckillPromotion自定义表名 sms_seckill_promotion
func (SmsSeckillPromotion) TableName() string {
	return "sms_seckill_promotion"
}

type SmsSeckillPromotionRepo interface {
}

type SmsSeckillPromotionUsecase struct {
	repo SmsSeckillPromotionRepo
	log  *log.Helper
}

func NewSmsSeckillPromotionUsecase(repo GreeterRepo, logger log.Logger) *SmsSeckillPromotionUsecase {
	return &SmsSeckillPromotionUsecase{repo: repo, log: log.NewHelper(logger)}
}
